/**
 * 时间 ： 2014-5-27 上午11:21:42
 * 作者 ： HaiTao
 * 描述 ： 当前类的描述信息
 **/
package com.laitaoo.event
{
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	public class HomeEvent extends Event
	{
		/* 加载导航树 */
		public static const TREE_DATA:String = "treeData";
		
		/* 获取年份返回结果*/
		public static const TREE_YEAR_RESULT:String = "treeYearResult";
		
		/*添加月份 */
		public static const ADD_MOUTH:String = "addMouth";
		
		/* 添加商品种类*/
		public static const ADDPRODUCT:String = "addProduct";
		
		/* 添加商品种类返回结果*/
		public static const ADDPRODUCTRESULT:String = "addProductResult";
		
		/* 获取商品列表 */
		public static const PRODUCTLIST:String = "productList";
		
		/* 获取商品列表 */
		public static const PRODUCTLISTRESULT:String = "productListResult";
		
		/* 保存编辑的数据 */
		public static const SAVEPRODUCTBYDAYID:String = "saveProductByDayId";
		
		/* 保存商品名称 */
		public static const SAVEPRODUCTNAME:String = "saveProductName";
		
		/* 保存每天的汇总信息 */
		public static const UPDATETOTALINFO:String = "updateTotalInfo";
		
		/* 获取每天的汇总信息*/
		public static const GETTOTALINFOBYDAYID:String = "getTotalInfoByDayId";
		
		/* 获取每天的汇总信息返回*/
		public static const GETTOTALINFOBYDAYIDRESULT:String = "getTotalInfoByDayIdResult";
		
		/* 每月的统计数据*/
		public static const GETMOUTHCHART:String = "getMouthChart";
		
		/* 获取所有分类*/
		public static const GETPRODUCTKINDS:String = "getProductKinds";
		
		/* 获取所有分类*/
		public static const GETPRODUCTKINDSRESULT:String = "getProductKindsResult";
		
		public var years:XML;// 后台返回的树结构数据
		
		public var year:String;
		public var mouth:String;
		
		public var productName:String;
		
		public var produtList:ArrayCollection; // 每日销售列表
		
		public var strockList:ArrayCollection; // 每日进货列表
		
		public var productKinds:ArrayCollection; // 种类

		/* 类型 ID */
		public var kindId:int;
		/* 保存种类数据 */
		public var dayId:int;
		
		/* 商品ID*/
		public var productId:int;
		
		public var totalCost:int;
		public var totalTunover:int;
		public var totalProfit:int;
		
		public var mouthXml:XML;
		
		// 获取商品的单价
		public static const productPrice:String = "productPrice";
		public static const productPriceResult:String = "productPriceResult";
		
		public var storageObj:Object;
		
		public function HomeEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
	}
}